using System;
using System.Collections.Generic;
using System.Text;
using Pay.TO;

namespace Pay.Data {
	/// <summary>
	/// 产品表：mc_Product
	/// </summary>
	public partial class Product {
		public Product() {
            ProductSkus = new HashSet<ProductSku>();
        }

		/// <summary>
		/// 产品id
		/// </summary>
		public long Id { get; set; }
        /// <summary>
        /// 海淘乐商品id
        /// </summary>
        public long? ProductsId { get; set; }
        /// <summary>
        /// 海淘乐商品唯一编码
        /// </summary>
        public string Sku { get; set; }
        /// <summary>
        /// 海淘乐代理价
        /// </summary>
        public string AgentPrices { get; set; }
        /// <summary>
        /// 一级类目ID
        /// </summary>
        public long? FirstCategoriesId { get; set; }
        /// <summary>
        /// 一级类目名称
        /// </summary>
        public string FirstCategoriesName { get; set; }
        /// <summary>
        /// 二级类目ID
        /// </summary>
        public long? SecondCategoriesId { get; set; }
        /// <summary>
        /// 二级类目名称
        /// </summary>
        public string SecondCategoriesName { get; set; }
        /// <summary>
        /// 三级类目id
        /// </summary>
        public long? ThirdCategoriesId { get; set; }
        /// <summary>
        /// 三级类目名称
        /// </summary>
        public string ThirdCategoriesName { get; set; }
        /// <summary>
        /// 运费id
        /// </summary>
        public string ExpressId { get; set; }
        /// <summary>
        /// 仓储费id
        /// </summary>
        public long? StoreExpensesId { get; set; }
        /// <summary>
        /// 库存方式
        /// </summary>
        public int? StoreType { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string StoreName { get; set; }
        /// <summary>
        /// 所属海关名称
        /// </summary>
        public string CustomsName { get; set; }
        /// <summary>
        /// 产地
        /// </summary>
        public string ProducingArea { get; set; }
        /// <summary>
        /// 品牌id
        /// </summary>
        public long? BrandsId { get; set; }
        /// <summary>
        /// 品牌名称
        /// </summary>
        public string BrandsName { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public string ShelfLife { get; set; }
        /// <summary>
        /// 最高购买数量（0表示不限制）
        /// </summary>
        public int? MaxQuantity { get; set; }
        /// <summary>
        /// 单笔订单最低起购量
        /// </summary>
        public int? MinQuantity { get; set; }
        /// <summary>
        /// 单位数量/次
        /// </summary>
        public int? UnitQuantity { get; set; }
        /// <summary>
        /// 商品是否可搭配购买（0：否，1：是）
        /// </summary>
        public int? IsCollection { get; set; }
        /// <summary>
        /// 促销标签
        /// </summary>
        public string TagName { get; set; }
        /// <summary>
        /// 商品主图
        /// </summary>
        public string MainImageUrl { get; set; }
        /// <summary>
        /// 1 – 添加，表示没有推送过该商品
        /// 2 – 修改，表示之前已经推送过该商品，但海淘乐系统有更新信息
        /// </summary>
        public int? RequestStatus { get; set; }
        /// <summary>
        /// 是否海淘乐商品
        /// </summary>
        public int? IsHtl { get; set; }
        /// <summary>
        /// 商户id
        /// </summary>
        public long MerchantId { get; set; }
		/// <summary>
		/// 名称
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 条码
		/// </summary>
		public string Code { get; set; }
		/// <summary>
		/// 商品属性
		/// </summary>
		public string Props { get; set; }
		/// <summary>
		/// 备注说明
		/// </summary>
		public string ShortDescription { get; set; }
		/// <summary>
		/// 分类id
		/// </summary>
		public long? CategoryId { get; set; }
		/// <summary>
		/// 市场价格
		/// </summary>
		public decimal MarketPrice { get; set; }
		/// <summary>
		/// 价格
		/// </summary>
		public decimal Price { get; set; }
		/// <summary>
		/// 库存
		/// </summary>
		public int Stock { get; set; }
		/// <summary>
		/// 抵扣积分
		/// </summary>
		public int Integral { get; set; }
		/// <summary>
		/// 运费
		/// </summary>
		public decimal Freight { get; set; }
		/// <summary>
		/// 赠送积分
		/// </summary>
		public int Points { get; set; }
		/// <summary>
		/// 是否开启三级分销
		/// </summary>
		public bool IsOpen { get; set; }
		/// <summary>
		/// 推荐排序
		/// </summary>
		public int Top { get; set; }
		/// <summary>
		/// 销售数量
		/// </summary>
		public int SaleCount { get; set; }
		/// <summary>
		/// 图片JSON:[]
		/// </summary>
		public string ImagePath { get; set; }
		/// <summary>
		/// 发布时间
		/// </summary>
		public long CreateTime { get; set; }
		/// <summary>
		/// 更新时间
		/// </summary>
		public long UpdateTime { get; set; }
		/// <summary>
		/// 销售状态:0原始状态,1出售中,2仓库中,3已删除
		/// </summary>
		public SaleStatus SaleStatus { get; set; }
		/// <summary>
		/// 审核状态:1待审核,2销售中,3违规下架
		/// </summary>
		public AuditStatus AuditStatus { get; set; }
		/// <summary>
		/// 审核原因
		/// </summary>
		public string AuditReason { get; set; }
		/// <summary>
		/// 内容
		/// </summary>
		public string Description { get; set; }
		/// <summary>
		/// 商品类型 1：实物 2：虚拟，3：积分，4：普惠积分，5：398升级创客商品
		/// </summary>
		public int Type { get; set; }
		/// <summary>
		/// 商品标签 better：精选，hot：爆款
		/// </summary>
		/// <value>The tag.</value>
		public string Tag { get; set; }
		/// <summary>
		/// 国家编码
		/// </summary>
		public string Country { get; set; }
		/// <summary>
		/// 是否境外商品
		/// </summary>
		public bool IsSeas { get; set; }
        /// <summary>
        /// 净重
        /// </summary>
        public double Weight { get; set; }
        /// <summary>
        /// 净重单位
        /// </summary>
        public string WeightUnit { get; set; }
        /// <summary>
        /// 税点
        /// </summary>
        public decimal? Tax { get; set; }
        /// <summary>
        /// 计量单位编码
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        ///  商品申报id
        /// </summary>
        public long? GoodDecId { get; set; }

        /// <summary>
        /// 分销等级
        /// </summary>
        public int? Depth { get; set; }
        /// <summary>
        /// 分销比例
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 是否包税
        /// </summary>
        public bool IsTax { get; set; }
        /// <summary>
        /// 是否包运费
        /// </summary>
        public bool IsFreight { get; set; }
        /// <summary>
        /// 价格分销比例
        /// </summary>
        public decimal? DistributionPrice { get; set; }
        /// <summary>
        /// 成本价
        /// </summary>
        public decimal? CostPrice { get; set; }
        /// <summary>
        /// 贸易类型
        /// </summary>
        public string TradeType { get; set; }
        /// <summary>
        /// 是否app发布
        /// </summary>
        public bool IsApp { get; set; }
        /// <summary>
        /// 商户
        /// </summary>
        public virtual Merchant Merchant { get; set; }
		/// <summary>
		/// 产品分类：mc_Category
		/// </summary>
		public virtual Category Category { get; set; }
        /// <summary>
        /// 产品分类：mc_Category
        /// </summary>
        public virtual GoodDeclaration GoodDeclaration { get; set; }
        /// <summary>
        /// 商品规格表：mc_ProductSku，购买都用SkuPath查询 集合
        /// </summary>
        public virtual ICollection<ProductSku> ProductSkus { get; set; }
	}
}